<!--<h4>{{helper:lang line = 'salary:salary'}} {{year}}</h4>-->
{{model}}

<div class="item">
<h3>{{helper:lang line='global:month'}} {{month}} - <?php echo $year ?></h3>
<table class="kunTable">
	{{if user:group_id == 1}}
	<tr><td>{{helper:lang line='users:full_name'}}</td><td>:</td><td class="upc bold"><span title="{{ profile:display_name }}" class="tooltip">{{ profile:display_name }}</span>
		<div class="info" style="display:none">
			<p>{{helper:lang line='users:phone'}} : {{profile:phone}}</p>
			<p>{{helper:lang line='users:date_start'}} : {{helper:date format = 'd-m-Y' timestamp = profile:date_start }}</p>
		</div>
	</td></tr>
	{{endif}}
	<tr><td>{{helper:lang line='salary:salary2'}}</td><td>:</td><td>{{ helper:number value = salary2 }}</td></tr>
	<tr><td>{{helper:lang line='salary:salary1'}}</td><td>:</td><td>{{ helper:number value = salary }}</td></tr>
	<tr><td>{{helper:lang line='salary:salary3'}}</td><td>:</td><td>{{ helper:number value = salary3 }}</td></tr>
	<tr><td colspan="3"></td></tr>
	<tr><td>{{helper:lang line='salary:salary_add1'}}</td><td>:</td><td>{{ helper:number value = salary_add1 }}</td></tr>
	<tr><td>{{helper:lang line='salary:salary_add2'}}</td><td>:</td><td>{{ helper:number value = salary_add2 }}</td></tr>
	<tr><td>{{helper:lang line='salary:salary_add3'}}</td><td>:</td><td>{{ helper:number value = dilai }}</td></tr>
	<tr><td>{{helper:lang line='salary:salary_add4'}}</td><td>:</td><td>{{ helper:number value = salary_add4 }}</td></tr>
	<!--<tr><td colspan="3"></td></tr>
	<tr><td>{{helper:lang line='salary:except1'}}</td><td>:</td><td>{{ helper:number value = except1 }}</td></tr>-->
	<tr><td colspan="3"></td></tr>
	<tr><td>{{helper:lang line='salary:date_work'}}</td><td>:</td><td>{{ helper:number value = date_work }}</td></tr>
	<tr><td>{{helper:lang line='salary:date_s'}}</td><td>:</td><td>{{ date_s }}</td></tr>
	<tr><td>{{helper:lang line='salary:date_n'}}</td><td>:</td><td>{{ date_n }}</td></tr>
	<tr><td>{{helper:lang line='salary:date_l'}}</td><td>:</td><td>{{ date_l }}</td></tr>
	<tr><td>{{helper:lang line='salary:minute_t'}}</td><td>:</td><td>{{ helper:number value = minute_t }} {{ helper:lang line='salary:minute' }}</td></tr>
	<tr><td colspan="3"></td></tr>
	<tr><td>{{helper:lang line='salary:plus'}}</td><td>:</td><td>{{ helper:number value = plus }}</td></tr>
	<tr><td>{{helper:lang line='global:note'}}</td><td>:</td><td>{{ plus_note }}</td></tr>
	<tr><td>{{helper:lang line='salary:minus'}}</td><td>:</td><td>{{ helper:number value = minus}}</td></tr>
	<tr><td>{{helper:lang line='global:note'}}</td><td>:</td><td>{{ minus_note }}</td></tr>
	
	<tr><td colspan="3"></td></tr>
	<tr><td>{{helper:lang line='salary:bh'}}</td><td>:</td><td>{{ helper:number value = b_value }}</td></tr>
	<tr><td>{{helper:lang line='salary:factor'}}</td><td>:</td><td>{{ factor }}</td></tr>
	
	<tr class="factor-note {{hide}}"><td>{{helper:lang line='global:note'}}</td><td>:</td><td>{{ factor_note }}</td></tr>
	
	<tr><td>{{helper:lang line='salary:total'}}</td><td>:</td><td><b>{{ helper:number value = total }}</b></td></tr>
</table>
</div>
{{/model}}
{{if ! model }}
    	<p>{{helper:lang line='global:nodata'}}</p>
{{endif}}

<script>
$n = $('#filter-stage .item');
if($n.length == 1){
	$n.addClass('width100');
}
{{if user:group_id == 1}}
$('#filter-stage .item').addClass('width45');
{{endif}}

$('.tooltip').tooltip({
	//items:'.info',
    content: function () {
		//alert($(this).siblings('.info'));
		return $(this).siblings('.info').html();//.prop('title');
	}
})
</script>